<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>


<table border="1">
	<tr>
		<td><a href="<%=basePath%>ImagesController/add.do">添加案例</a></td>
	<tr>
</table>


<br>
<br>
<h1>列表数据</h1>
<table border="1">
		<thead>
			<tr>
				<td>id</td>
				<td>标题</td>
				<td>文件地址</td>
				<td>操作</td>
			</tr>
		</thead>
	<c:forEach items="${list}" var="list">
		<tr>
			<td>${list.id}</td>
			<td>${list.title}</td>
			<td>
				<img style="height:50px;" src="${list.url}">
			</td>
			<td><a href="<%=basePath%>ImagesController/delete.do?id=${list.id}">删除</a></td>
		<tr>
	</c:forEach>
	

</table>



<h2>消息提示：${msg }</h2>



</body>
</html>